package com.atguigu.gulimall.seckill.service;

import com.atguigu.gulimall.seckill.to.SeckillSkuInfoRedisTo;

import java.util.List;

/**
 * @author 马迎迎
 * @Title: SeckillService
 * @Package com.atguigu.gulimall.seckill.service
 * @Description: TODO(添加描述)
 * @date 2021年06月02日 13:48
 */
public interface SeckillService {
    void updateSeckillSkuLasted3Days();

    List<SeckillSkuInfoRedisTo> getCurrentTimeSeckillSkus();

    SeckillSkuInfoRedisTo getSkuSeckillInfo(Long skuId);

    String seckill(String seckillId, Integer count, String seckillToken) throws InterruptedException;
}
